#!/bin/bash
source src/conf/config.conf

cd $tftp_dir
#wget -c  http://pxe.sytes.net/dsl.tar.gz

echo " Downloading Damn Small Linux..."

wget -q -c   logos/dsl.tar.gz
  
      tar -zxvf dsl.tar.gz
 
yes | cp -Rv dsl/* LINUX/dsl/


mv dsl.tar.gz tars/
cat >> pxelinux.cfg/linux << EOF


menu include pxelinux.cfg/graphics.conf
MENU BACKGROUND pxelinux.cfg/background.png
        label Load DSL 
	menu label Load DSL
            kernel LINUX/dsl/linux24  
           append LINUX/dsl/ramdisk_size=100000 init=/etc/init initrd=LINUX/dsl/minirt24.gz

   TEXT HELP
       Install Damn Small Linux
        ENDTEXT
 
 EOF
